package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.domain.SysCollectConfig;
import com.ruoyi.system.mapper.SysCollectConfigMapper;
import com.ruoyi.system.service.ISysCollectConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参数配置 服务层实现
 *
 * @author javid
 */
@Service
public class SysCollectConfigServiceImpl implements ISysCollectConfigService {
    @Autowired
    private SysCollectConfigMapper mapper;

    @Override
    @DataSource(DataSourceType.MASTER)
    public List<SysCollectConfig> selectConfigByType(Integer type) {
        return mapper.selectConfigByType(type);
    }

}
